package com.csweimei.rentmanagementtreasure.enterprise.act;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import com.chad.library.BR;
import com.csweimei.rentmanagementtreasure.R;
import com.csweimei.rentmanagementtreasure.base.AppConfig;
import com.csweimei.rentmanagementtreasure.databinding.ActivityEntDpDetailBinding;
import com.csweimei.rentmanagementtreasure.enterprise.viewModel.EntDpDVM;
import com.csweimei.rentmanagementtreasure.http.entity.EntHomeDailyBean;

import me.goldze.mvvmhabit.base.BaseActivity;

public class EntDpDetailActivity extends BaseActivity<ActivityEntDpDetailBinding, EntDpDVM> {


    @Override
    public int initContentView(Bundle savedInstanceState) {
        return R.layout.activity_ent_dp_detail;
    }

    @Override
    public int initVariableId() {
        return BR.viewModel;
    }

    EntHomeDailyBean.DataDTO bean;
    @Override
    public void initParam() {
        super.initParam();
        bean = (EntHomeDailyBean.DataDTO) getIntent().getSerializableExtra(AppConfig.BUNDLE_KEY);

    }

    @Override
    public void initData() {
        super.initData();
        viewModel.setActivity(this);
        viewModel.entity.set(bean);
    }
}